python-docker: fix pyproject.toml issues
authorJavier Marcet <[email protected]>
Mon, 24 Jun 2024 19:29:56 +0000 (21:29 +0200)
committerTianling Shen <[email protected]>
Fri, 14 Nov 2025 09:33:22 +0000 (17:33 +0800)
* Getting build dependencies for wheel...

ERROR Missing dependencies:
   hatch-vcs

File "./staging_dir/hostpkg/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 51, in validate
raise ValueError(f"{error}\n{summary}") from None
ValueError: invalid pyproject.toml config: `project.license`.
configuration error: `project.license` must be valid exactly by one definition (2 matches found):

- keys:
    'file': {type: string}
  required: ['file']
- keys:
    'text': {type: string}
  required: ['text']

Signed-off-by: Javier Marcet <[email protected]>
lang/python/python-docker/patches/pyproject.patch [new file with mode: 0644]

diff --git a/lang/python/python-docker/patches/pyproject.patch b/lang/python/python-docker/patches/pyproject.patch
new file mode 100644 (file)
index 0000000..4d5285b
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["hatchling", "hatch-vcs"]
++requires = []
+ build-backend = "hatchling.build"
+ [project]
+@@ -7,7 +7,7 @@ name = "docker"
+ dynamic = ["version"]
+ description = "A Python library for the Docker Engine API."
+ readme = "README.md"
+-license = "Apache-2.0"
++license = { text = "Apache-2.0" }
+ requires-python = ">=3.8"
+ maintainers = [
+     { name = "Docker Inc.", email = "[email protected]" },